package pojo;

import java.sql.Date;

public class News {//校内新闻
    private int id;//编号
    private String title;//标题
    private String author;//作者
    private int state;//状态
    private String category;//类别
    private String cover_url;//
    private String content;//内容
    private int view_count;//视图技术
    private Date create_time;//发布时间
    private Date updateTime;//修改时间
    public News(){}

    public News(int id, String title, String author, int state, String category, String cover_url, String content, int view_count, Date create_time, Date updateTime) {
        this.id = id;
        this.title = title;
        this.author = author;
        this.state = state;
        this.category = category;
        this.cover_url = cover_url;
        this.content = content;
        this.view_count = view_count;
        this.create_time = create_time;
        this.updateTime = updateTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getCover_url() {
        return cover_url;
    }

    public void setCover_url(String cover_url) {
        this.cover_url = cover_url;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getView_count() {
        return view_count;
    }

    public void setView_count(int view_count) {
        this.view_count = view_count;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}